"""
简单启动脚本
"""
import uvicorn
import traceback

def main():
    try:
        print("正在启动应用程序...")
        print("导入应用...")
        
        from app.main import app
        print("应用导入成功")
        
        print("启动服务器...")
        uvicorn.run(
            app,
            host="127.0.0.1",
            port=8000,
            log_level="debug"
        )
        
    except Exception as e:
        print(f"启动失败: {e}")
        traceback.print_exc()

if __name__ == "__main__":
    main()
